import request from '@/utils/request'
// const prefix = 'health-channel/'
const prefix = 'admin/'
// 学耕教育老师Api

// 老师-列表
export function getTeacherList(data) {
  return request({
    url: prefix + 'topTeacher/getTeacherList',
    method: 'post',
    data
  })
}
// 老师-新增
export function addTeacher(data) {
  return request({
    url: prefix + 'topTeacher/addTeacher',
    method: 'post',
    data
  })
}

// 老师-修改
export function modifyTeacherById(data) {
  return request({
    url: prefix + 'topTeacher/modifyTeacherById',
    method: 'post',
    data
  })
}

// 老师-根据主键查询老师
export function getTeacherById(teacherId) {
  return request({
    url: prefix + 'topTeacher/getTeacherById/' + teacherId,
    method: 'get'
  })
}

// 老师-删除
export function removeTeacherById(teacherId) {
  return request({
    url: prefix + 'topTeacher/removeTeacherById/' + teacherId,
    method: 'delete'
  })
}
